﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChainOfResponsibilityPattern.DemoOne
{
    public class Women : IWomen
    {
        /// <summary>
        /// 通過一個int類型的參數來描述婦女的個人狀況
        /// 1---未出嫁
        /// 2---出嫁
        /// 3---夫亡
        /// </summary>
        private int type = 0;

        /// <summary>
        /// 婦女的請示
        /// </summary>
        private string reqeust = string.Empty ;

        /// <summary>
        /// 構造函數傳遞過來請求
        /// </summary>
        /// <param name="_type"></param>
        /// <param name="_request"></param>
        public Women(int _type, string _request)
        {
            this.type = _type;
            this.reqeust = _request;
        }

        /// <summary>
        /// 獲取婦女請求
        /// </summary>
        /// <returns></returns>
        public string getRequest()
        {
            return this.reqeust;
        }

        /// <summary>
        /// 獲取自己的狀況
        /// </summary>
        /// <returns></returns>
        public int getType()
        {
            return this.type;
        }
    }
}
